<!doctype html>
<style>
    div[type=one] {
        background: red;
    }
</style>
<div type="one">I have a red background</div>
<div type="two">I don't have a green background</div>
